import api from '@/api/api'

const channelRoles = {
  name: '栏目',
  role: '/channel',
  api: [api.channelList, api.channelTree, api.channelCopy,'/channel/list'],
  children: [
    {
      name: '列表',
      role: '/channel/list',
      api: [api.channelList, api.modelList],
    },
    {
      name: '详情',
      role: '/channel/get',
      api: [
        api.channelGet, api.itemList,
        api.channelCreatPath,
        api.fullTextSearchChannelList,
        api.modelList, api.tplModelList,
        api.groupList,
        api.workflowList,
        api.tplSelectContentModel
      ],
    },
    {
      name: '保存',
      role: '/channel/save',
      api: [api.channelSave, api.channelCheckPath],
    },
    {
      name: '保存排序',
      role: '/channel/savePriority',
      api: [api.channelPriority],
    },
    {
      name: '修改',
      role: '/channel/update',
      api: [api.channelUpdate, api.channelCheckPath],
    },
    {
      name: '删除',
      role: '/channel/delete',
      api: [api.channelDelete],
    },
    {
      name: '复制',
      role: '/channel/copy',
      api: [api.channelCopy],
    },
  ]
}
export default channelRoles;
